/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.AdsProject.DomainModels
{
    [Entity(TableCnName = "异常任务",TableName = "Ads_Task",DBServer = "ServiceDbContext")]
    public partial class Ads_Task:ServiceEntity
    {
        /// <summary>
       ///异常任务ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="异常任务ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long TaskId { get; set; }

       /// <summary>
       ///异常任务编号
       /// </summary>
       [Display(Name ="异常任务编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string TaskCode { get; set; }

       /// <summary>
       ///异常类型ID
       /// </summary>
       [Display(Name ="异常类型ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long AbnormalTypeId { get; set; }

       /// <summary>
       ///设备编码集合
       /// </summary>
       [Display(Name ="设备编码集合")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string EquipmentCodes { get; set; }

       /// <summary>
       ///发起人编码
       /// </summary>
       [Display(Name ="发起人编码")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Initiator { get; set; }

       /// <summary>
       ///发起人说明
       /// </summary>
       [Display(Name ="发起人说明")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string InitiatorRemarks { get; set; }

       /// <summary>
       ///发起人附件
       /// </summary>
       [Display(Name ="发起人附件")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string InitiatorAttachments { get; set; }

       /// <summary>
       ///任务状态（待认领、处理中、待确认、退回、完成、删除）
       /// </summary>
       [Display(Name ="任务状态（待认领、处理中、待确认、退回、完成、删除）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Status { get; set; }

       /// <summary>
       ///前处理人
       /// </summary>
       [Display(Name ="前处理人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string LastProcessor { get; set; }

       /// <summary>
       ///当前处理人
       /// </summary>
       [Display(Name ="当前处理人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string CurrentProcessor { get; set; }

       /// <summary>
       ///处理方法
       /// </summary>
       [Display(Name ="处理方法")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string TreatmentMethod { get; set; }

       /// <summary>
       ///处理结果
       /// </summary>
       [Display(Name ="处理结果")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string TreatmentResult { get; set; }

       /// <summary>
       ///处理附件集合
       /// </summary>
       [Display(Name ="处理附件集合")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string TreatmentAttachments { get; set; }

       /// <summary>
       ///是否有效(0:否,1:是)
       /// </summary>
       [Display(Name ="是否有效(0:否,1:是)")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       public string Remarks { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long CreateId { get; set; }

       /// <summary>
       ///创建人名
       /// </summary>
       [Display(Name ="创建人名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人名
       /// </summary>
       [Display(Name ="修改人名")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///优先级（0:低,1:中,2:高,3:很高）
       /// </summary>
       [Display(Name ="优先级（0:低,1:中,2:高,3:很高）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Priority { get; set; }

       
    }
}